import request from '@/util/request.js';

/**
 * @description 提交CID
 * @param {Object} data
 */
export function submitCid(data) {
	return request({
		url: '/driver/updateUserMessagePush',
		method: 'POST',
		data
	})
}
/**
 * @description 上下线
 */
export function handleOnline(online){
	return request({
		url:'/driver/switchOnlineStatusInterface',
		method:'GET',
		data:{online}
	})
}

/**
 * @description 获取状态
 */
export function getPushStatus(){
	return request({
		url:'/driver/queryWhetherCurrentUserOperatesOnline',
		method:'GET'
	})
}
